<?php

namespace App\Modules\Home\Models;


use Illuminate\Database\Eloquent\Model;

/**
 * Class Task 任务
 * @package App\Modules\Task\Models
 */
class FoodsDetail extends Model
{
    protected $table = 'foods_detail';

    protected $fillable = ['id','name','cat_id','img','code','info','origin_id','status'];

    public static function getAll() {
        return self::where('status',1)->get();
    }

}